package com.company.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.company.system.mapper.TableRecruitMapper;
import com.company.system.domain.TableRecruit;
import com.company.system.service.ITableRecruitService;

/**
 * 职位发布管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-06
 */
@Service
public class TableRecruitServiceImpl implements ITableRecruitService 
{
    @Autowired
    private TableRecruitMapper tableRecruitMapper;

    /**
     * 查询职位发布管理
     * 
     * @param recruitid 职位发布管理主键
     * @return 职位发布管理
     */
    @Override
    public TableRecruit selectTableRecruitByRecruitid(Long recruitid)
    {
        return tableRecruitMapper.selectTableRecruitByRecruitid(recruitid);
    }

    /**
     * 查询职位发布管理列表
     * 
     * @param tableRecruit 职位发布管理
     * @return 职位发布管理
     */
    @Override
    public List<TableRecruit> selectTableRecruitList(TableRecruit tableRecruit)
    {
        return tableRecruitMapper.selectTableRecruitList(tableRecruit);
    }

    /**
     * 新增职位发布管理
     * 
     * @param tableRecruit 职位发布管理
     * @return 结果
     */
    @Override
    public int insertTableRecruit(TableRecruit tableRecruit)
    {
        return tableRecruitMapper.insertTableRecruit(tableRecruit);
    }

    /**
     * 修改职位发布管理
     * 
     * @param tableRecruit 职位发布管理
     * @return 结果
     */
    @Override
    public int updateTableRecruit(TableRecruit tableRecruit)
    {
        return tableRecruitMapper.updateTableRecruit(tableRecruit);
    }

    /**
     * 批量删除职位发布管理
     * 
     * @param recruitids 需要删除的职位发布管理主键
     * @return 结果
     */
    @Override
    public int deleteTableRecruitByRecruitids(Long[] recruitids)
    {
        return tableRecruitMapper.deleteTableRecruitByRecruitids(recruitids);
    }

    /**
     * 删除职位发布管理信息
     * 
     * @param recruitid 职位发布管理主键
     * @return 结果
     */
    @Override
    public int deleteTableRecruitByRecruitid(Long recruitid)
    {
        return tableRecruitMapper.deleteTableRecruitByRecruitid(recruitid);
    }
}
